package com.example.demo.serviceipml;

import com.example.demo.dao.aboveProblemDao;
import com.example.demo.entify.AboveProblems;
import com.example.demo.service.aboveProblemsService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class aboveProblemsSericeImp implements aboveProblemsService {
    @Autowired
    private aboveProblemDao aboveProblemDao;
    @Override
    public int insert(AboveProblems aboveProblems) {
        return aboveProblemDao.insert(aboveProblems);
    }
	@Override
	public List<AboveProblems> Problems(String userName) {
		// TODO Auto-generated method stub
		return aboveProblemDao.Problems(userName);
	}
	@Override
	public int deleteProblems(Integer id) {
		// TODO Auto-generated method stub
		return aboveProblemDao.deleteProblems(id);
	}
	@Override
	public List<AboveProblems> AcceptedProblem() {
		// TODO Auto-generated method stub
		return aboveProblemDao.AcceptedProblem();
	}

	@Override
	public List<AboveProblems> checkProblem(String userName) {
		// TODO Auto-generated method stub
		return aboveProblemDao.checkProblem(userName);
	}
	@Override
	public int updatePromState(Integer id, Integer orderId) {
		// TODO Auto-generated method stub
		return aboveProblemDao.updatePromState(id, orderId);
	}
	@Override
	public int updatePromState2(Integer id) {
		// TODO Auto-generated method stub
		return aboveProblemDao.updatePromState2(id);
	}
	@Override
	public int aboveProblemid(Integer id) {
		// TODO Auto-generated method stub
		return aboveProblemDao.aboveProblemid(id);
	}
	@Override
	public int updatePromState1(Integer id) {
		// TODO Auto-generated method stub
		return aboveProblemDao.updatePromState1(id);
	}
	@Override
	public int updatePromState3(Integer id) {
		// TODO Auto-generated method stub
		return aboveProblemDao.updatePromState3(id);
	}
	@Override
	public List<AboveProblems> ProblemBystate() {
		// TODO Auto-generated method stub
		return aboveProblemDao.ProblemBystate();
	}
    
    
}
